<script setup lang="ts">
import { useRouter } from 'vue-router';
const router = useRouter()
const props = defineProps({
    title:String
})
</script>

<template>
  <div class="returnHeaderContainer">
      <div class="iconfont icon-zuo" @click="()=>{router.go(-1)}"></div>
      <div class="title">{{title}}</div>
  </div>
</template>

<style lang="less">
.returnHeaderContainer {
    width: 100%;
    background: #fff;
    position: fixed;
    top: 0;
    height: 50px;
    .icon-zuo {
        position: absolute;
        left: 20px;
        color: #999;
        line-height: 50px;
        font-size: 22px;
    }
    .title {
        display: block;
        width: 200px;
        text-align: center;
        height: 50px;
        margin: auto;
        line-height: 50px;
    }
}
</style>